<template>
  <div>
    <h1>{{ message }}</h1>
    <button @click="reverseText">逆转世界</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      message: "Hello，world",
    };
  },
  methods: {
    reverseText() {
      this.message = this.message.split("").reverse().join("");
    },
  },
};
</script>

<style>
</style>